// src/stores/models/UiStore.ts
import { types, Instance } from "mobx-state-tree";
import UiLayoutStore from "./Layout/layoutStore";
import uiLayoutStoreIns from "./Layout/layoutStoreIns";

// UI存储模型
export const UiStore = types.model("UiStore", {
  layout: types.optional(UiLayoutStore, () => uiLayoutStoreIns),
  clientReady: types.optional(types.boolean, false),
  isVerticalStyle: types.optional(types.boolean, false)
}).actions(self => ({
  setClientReady(ready: boolean) {
    self.clientReady = ready;
  },
  setIsVerticalStyle(vertical: boolean) {
    self.isVerticalStyle = vertical;
  }
}));

export type UiStoreInstance = Instance<typeof UiStore>;